import socket,select
import time,random
from config import *
runOn = 'a'

peerPublicPort = 13569

for i in range(2000,65536):
    a  = socket.socket(type=socket.SOCK_DGRAM)
    add = ('0.0.0.0',i)
    try:
        a.bind(add)
    except:
        continue
    
    if runOn == 'a':    
        add = (bPublicIp,peerPublicPort)
    else :
        add = (aPublicIp,peerPublicPort)
        
    a.sendto(str(i).encode(),add)

